package org.example.task.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum TaskStatus {
    NOT_STARTED("未开始", 0),
    IN_PROGRESS("进行中", 1),
    COMPLETED("已完成", 2),
    DELAYED("已延期", 3);
    @JsonValue
    private final String key;
    @EnumValue
    private final int value;

    TaskStatus(String key, int value) {
        this.key = key;
        this.value = value;
    }
}
